﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style>
         .tip {
                width: 200px;
                height: 150px;
                padding: 5px;
                background-color: yellow;
                border: 3px solid rgb(195, 151, 51);
                border-radius: 5px;
                display: none;
                position: fixed;
            }
        .divItemExam , .divItemDrug{
            width: 300px;
            height: 300px;
            border: 1px solid green;
        }
    </style>
    <script src="Scripts/jquery-2.1.1.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>

<div class="divItemDrug">

        </div>
        <div class="divItemExam">

        </div>

<div id="tip" class="tip">
                test
            </div>


        <script>
          
            
            $('.divItemExam, .divItemDrug')
                        .mouseenter(function (e) {
                            $(this).addClass('calMoveIn');
                            $('#tip').show();
                
                        })
                        .mouseleave(function () {
                            $(this).removeClass('calMoveIn');
                            $('#tip').hide();
                        })
                        .mousemove(function (e) {
                            $('#tip').css('top', e.pageY + 5).css('left', e.pageX + 5);
                        });
        </script>

    </div>
    </form>
</body>
</html>
